<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>详细信息展示</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <script type="text/javascript" src="${pageContext.request.contextPath}/common/bootstrap/js/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/common/bootstrap/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/common/bootstrap/js/jquery.cookie.js" type="text/javascript"
            charset="utf-8"></script>
    <%--页面调用数据--%>
    <style>
        .examination {
            font-size: 16px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="form-group col-sm-12">
        <h3 align="center"><b>审核结果查询</b></h3>
    </div>
    <c:forEach items="${queryAuditManagementList}" var="QAM">
        <div class="col-sm-12 examination">
            <p style="float: left; margin: 0 5px;">
                <i class="glyphicon glyphicon-upload" style="color: #80F54C;"></i>
            </p>
            <fmt:formatDate value="${QAM.queryAuditManagementTime}" var="queryAuditManagementTime"
                            pattern="yyyy-MM-dd HH:mm:ss"/>
            <p style="float: left; margin: 0 5px;">${queryAuditManagementTime}</p>
            <p style="float: left; margin: 0 5px;">${QAM.queryAuditManagementDepartment}</p>
            <c:choose>
                <c:when test="${queryAuditManagementState.informationApproverState ==1 }">
                    <p style="float: left; margin: 0 5px;">审核已通过</p>
                </c:when>
                <c:when test="${queryAuditManagementState.informationApproverState ==2 }">
                    <p style="float: left; margin: 0 5px;">审核未通过</p>
                </c:when>
            </c:choose>
            <p style="float: left; margin: 0 5px;">审批意见：</p>
            <p style=" height: 60px; margin-left: 30px; font-size: 14px; overflow:auto;overflow-x: hidden;">
                    ${QAM.queryAuditManagementOpinion}
            </p>
        </div>
    </c:forEach>
    <c:set value="${clinicalDataQuery}" var="CDQ"/>
    <div class="col-sm-12 examination" style="border-bottom: 1px solid #C7C2C3;">
        <p style="float: left; margin: 0 5px;">
            <i class="glyphicon glyphicon-upload" style="color: blue;"></i>
        </p>
        <fmt:formatDate value="${CDQ.stateTime}" var="stateTime" pattern="yyyy-MM-dd HH:mm:ss"/>
        <p style="float: left; margin: 0 5px;">${stateTime}</p>
        <c:forEach items="${meaningUserList}" var="meaningUser">
            <c:if test="${ meaningUser.userId == CDQ.meaningUserId }">
                <p style="float: left; margin: 0 5px;">${meaningUser.username}</p>
            </c:if>
        </c:forEach>
        <p style="float: left; margin: 0 5px;">提交申请</p>
    </div>
    <div class="col-sm-12 examination" style="margin: 20px 0 0 0;">
        <div class="col-sm-4 col-sm-offset-5">
            <a href="clinicalDataQueryDisplay.jsp">
                <button class="btn btn-primary col-sm-6">返回列表</button>
            </a>
        </div>
    </div>
</div>
</body>
</html>